{% extends "base.html" %}

{% block body %}
    {% if form.errors %}
        <p class="error">Sorry, that's not a valid username or password</p>
    {% endif %}

    <form action='.' method='post'>
        <label for="username">Usuario:</label>
        <input type="text" name="username" value="" id="username">
        <br />
        <label for="password">Contraseña:</label>
        <input type="password" name="password" value="" id="password">
        <br />
        <input type="submit" value="login" />
        <input type="hidden" name="next" value="{{ next|escape }}" />
    <form action='.' method='post'>
    <p>Regresa a la <a href="/home/">página principal.</a>
{% endblock %}

